package com.muyu.system.shopping.fegin;

import com.muyu.common.core.constant.ServiceNameConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.system.danmo.dto.PaymentCallBackResult;
import com.muyu.system.danmo.vo.RefundResultServiceVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Administrator
 */
@FeignClient(
        contextId = "SecurityDepositFeign01",
        value = ServiceNameConstants.SHOPPING_SERVICE,
        path = "/security/fegin"
)
public interface SecurityDepositFegin {


    @PostMapping("/pay/results")
    Result<String> payResultsHandle(@RequestBody PaymentCallBackResult paymentCallBackResult);



    @PostMapping("/refund/results")
    Result<String> refundResultsHandle(@RequestBody RefundResultServiceVO refundResultServiceVO);


    @PostMapping("/premium/pay/results")
    Result<String> premiumPayResults(@RequestBody PaymentCallBackResult paymentCallBackResult);
}
